<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Registry variables</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title"><A NAME="HELPRegVar"></A>Registry variables<hr></P>


<P>In multi-user environment it may be important to disable access
to some of WinRAR functions for security reasons. If you need to do
it, create Registry key: </P>

<P class="sample"><B>HKEY_LOCAL_MACHINE\Software\WinRAR\Policy</B></P>

<P>or</P>

<P class="sample"><B>HKEY_CURRENT_USER\Software\WinRAR\Policy</B></P>

<P>Key in HKEY_LOCAL_MACHINE has a higher priority than in HKEY_CURRENT_USER.</P>


<P>This key may contain the following values:<br></P>

<TABLE border="1" cellspacing="0">

<TR>
<TD><b>Value name</b></TD>
<TD><b>Value type</b></TD>
<TD><b>Description</b></TD>
</TR>

<TR>
<TD>Benchmark</TD>
<TD>DWORD</TD>
<TD>If set to 0, disables <a href="HELPCommandsBenchmark.htm">"Benchmark"</a>
command. In multi-user environment "Benchmark" command might abuse shared
computational resources.
</TD>
</TR>

<TR>
<TD>MaxDictA, MaxDictE</TD>
<TD>DWORD</TD>
<TD>If set to non-zero, define the maximum allowed dictionary size
in gigabytes for archiving (MaxDictA) and extraction (MaxDictE).
If these variables are smaller than corresponding values defined
in WinRAR interface, they override interface values.</TD>
</TR>

<TR>
<TD>Menu</TD>
<TD>DWORD</TD>
<TD>If set to 0, disables WinRAR main menu.</TD>
</TR>

<TR>
<TD>NoDrives</TD>
<TD>DWORD</TD>
<TD>Bit mask to hide one or more drives. Set it to 1 to hide A:,
2 for B:, 4 for C: and so on. Multiple drives are allowed. For example,
decimal 12 (4 + 8) will hide C: and D: drives. This value is combined
with NoDrives value in
"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
Registry subkey of HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE root keys.
</TD>
</TR>

<TR>
<TD>OrgPasswords</TD>
<TD>DWORD</TD>
<TD>If set to 0, access to <a href="HELPOrgPasswords.htm">
"Organize passwords"</a> dialog is disabled. It does not disable access to
passwords already stored in this dialog, so you may need to delete them
before setting OrgPasswords variable.</TD>
</TR>

<TR>
<TD>Password</TD>
<TD>DWORD</TD>
<TD>If set to 0, disables change of archiving password.
It may help to avoid encrypting of important data.</TD>
</TR>

<TR>
<TD>Settings</TD>
<TD>DWORD</TD>
<TD>If set to 0, disables "Settings" dialog, "Settings/Import and export"
submenu commands and toolbar context menu.</TD>
</TR>

<TR>
<TD>Shutdown</TD>
<TD>DWORD</TD>
<TD>If set to 0, disables "When done" archiving option,
so a user cannot shut down, sleep, hibernate or restart PC.
</TD>
</TR>

</TABLE>
<BR>

<P>It might be necessary to restart WinRAR after policy change.
Policy key does not affect the console RAR (rar.exe file),
so for better security in multi-user environment you may need to
delete Rar.exe and keep only WinRAR.exe.</P>

<P id="AppData">Also you can override the location of 
<a href="HELPAppData.htm">%APPDATA%\WinRAR</a> folder, specifying
a new path to WinRAR supplementary files in string value "AppData" 
of HKEY_CURRENT_USER\Software\WinRAR\Paths Registry key.</P>

</BODY>
</HTML>
